package com.typeinfo;

import java.util.ArrayList;
import java.util.List;

public class ApplyTest {
   public static void main(String[] args) throws NoSuchMethodException, SecurityException {
	   List<Shape> shapes=new ArrayList<Shape>();
		for(int i=0;i<10;i++){
			shapes.add(new Shape());
		}
		Apply.apply(shapes, Shape.class.getMethod("rotate"));
		Apply.apply(shapes, Shape.class.getMethod("resize",int.class),5);
}
}
